<!DOCTYPE html>
<html lang="en">
<head>
    <title>学生大数据</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="{{ url_for('static',filename='css/jquery-weui.min.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename='css/weui.min.css') }}">
    <script src="../static/js/zepto.min.js"></script>
    <script src="../static/js/example.js"></script>
    <script src="../static/js/weui.min.js"></script>
    <script type="text/javascript" src="../static/js/jquery-weui.js"></script>
</head>
<body>
<h2 align="center"></h2>
        <div class="bd">
            <div class="weui_grids">
                <a href="{{ url_for('main.get_search')}}" class="weui_grid">
                    <div class="weui_grid_icon">
                        <img src='{{ url_for("static", filename="images/student.png") }}' alt="">
                    </div>
                    <p class="weui_grid_label">
                        学生查询
                    </p>
                </a>
                {% if authority == 1 %}
                <a href="{{ url_for('hostel.get_class') }}" class="weui_grid">
                    <div class="weui_grid_icon">
                        <img src='{{ url_for("static", filename="images/sushe.png") }}' alt="">
                    </div>
                    <p class="weui_grid_label">
                        归寝情况
                    </p>
                </a>
                {% else %}
                 <a href="javascript:" class="weui_grid" id="show-toast-forbidden">
                    <div class="weui_grid_icon">
                        <img src='{{ url_for("static", filename="images/sushe.png") }}' alt="">
                    </div>
                    <p class="weui_grid_label">
                        归寝情况
                    </p>
                </a>
                {% endif %}
            {% if my_pow == 2 %}
            <a href="http://jza.gangxi.xiaosikeji.com/hostel/me?username={{ user }}&userid={{ user_id }}" class="weui_grid" id="show-toast-forbidden">
                    <div class="weui_grid_icon">
                        <img src='{{ url_for("static", filename="images/sushe.png") }}' alt="">
                    </div>
                    <p class="weui_grid_label">
                        个人打卡记录
                    </p>
                </a>
            {% endif %}
            </div>
        </div>
</body>
</html>

